Skip to content

Conversation

@christian-bromann
Copy link
Member

Updates middleware documentation to reflect changes from:

which adds modelRetryMiddleware and updates toolRetryMiddleware API.

Changes

New: Model Retry Middleware Documentation

  • Added comprehensive documentation for modelRetryMiddleware (JavaScript) and ModelRetryMiddleware (Python)
  • Includes configuration options, examples, and use cases
  • Covers retry strategies, exponential backoff, custom exception filtering, and failure handling
  • Added to middleware tables for both Python and JavaScript

Updated: Tool Retry Middleware Documentation

  • Updated onFailure parameter documentation to reflect API changes:
    • 'raise''error' (deprecated, still supported with warning)
    • 'return_message''continue' (deprecated, still supported with warning)
  • Updated all examples to use new parameter values
  • Added deprecation notices for old values

⚠️ this should be merged as part of v1.1 release

@github-actions github-actions bot added langchain For docs changes to LangChain oss labels Nov 19, 2025
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-cbmode-1763590510-3ac1a43

@github-actions github-actions bot added python For content related to the Python version of LangChain projects docs-infra labels Nov 19, 2025
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-cbmode-1763590597-c2fd35b

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-infra langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants